//@Author:code-cats 

#include "interrupt.h"
#include "control.h"

void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef* htim)
{
	if(htim->Instance==TIM7)
	{
		time_1ms_callback();
	}
}


uint8_t uartrx_flag=0;
uint8_t uart1data=0;
void HAL_UART_RxCpltCallback(UART_HandleTypeDef* huart)
{
	if(huart->Instance==USART1)
	{
		HAL_UART_Receive_IT(huart,&uart1data,1);
		if(uart1data=='?')
		{
			uartrx_flag=1;
		}
	}
}
